home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
comm
/
mail
/
YAMscripts.lha
/
DispHTML.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-02
|
996b
|
46 lines
/* DispHTML.rexx 1.0 by Kai Nikulainen
Set MIME viewer for text/HTML to sys:rexxc/rx yam:rexx/dispHTML.rexx %s
and copy this script to YAM:rexx.
If you have any problems or suggestions, mail me at knikulai@utu.fi
Check also http://www.utu.fi/~knikulai/ARexx.html for lots of other scripts
*/
options results
parse arg file
browser='run <>nil: Work:IBrowse/IBrowse' /* Change this to suit your system */
address command 'copy >nil:' file 't:letter.html'
html='file://localhost/t:letter.html'
no_browser=1
lst=show('P')
if pos('MINDWALKER',lst)>0 then do
address 'MINDWALKER' 'OpenURL '|| html
no_browser=0
end
if pos('VOYAGER',lst)>0 then do
address 'VOYAGER' 'OpenURL '|| html
no_browser=0
end
if pos('IBROWSE',lst)>0 then do
address 'IBROWSE' 'GotoURL ' || html
no_browser=0
end
if pos('AWEB',lst)>0 then do
address value substr(lst,pos('AWEB.',lst),6)
'Open ' || html
no_browser=0
end
if no_browser then address command browser html
exit